/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.games;

import com.cadi.aux.Window;
import static com.cadi.aux.Window.styleText;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author ApoZuniga
 */
public class SuperIntermediateLevel extends Window {
    
    private JLabel instruction;
    private JLabel imageInstruction;
    private JLabel superImage;
    private JButton itemOne;
    private JButton itemTwo;
    private JButton itemThree;
    private JButton itemFour;
    private JButton itemFive;
    private JButton itemSix;
    private JButton itemSeven;

    public SuperIntermediateLevel() {
        super();
        voice = java.applet.Applet.newAudioClip(getClass().getResource("/resources/seleccionaProducto.wav"));
        voice.play();
        instruction = new JLabel(new ImageIcon(getClass().getResource("/resources/bannerSuper.png")));
        instruction.setBounds(50, 10, 600, 120);
        character.setBounds(5, 440, 149, 300);
        playVoice.setBounds(135, 550, 50, 50);
        imageInstruction = new JLabel(new ImageIcon(getClass().getResource("/resources/globoCompras.png")));
        imageInstruction.setBounds(140, 390, 200, 162);
        this.container.add(imageInstruction, JLayeredPane.PALETTE_LAYER); 
        container.add(instruction, JLayeredPane.PALETTE_LAYER);
        itemOne = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_1.png")));
        itemOne.setBounds(330, 430, 70, 190);
        itemOne.addActionListener(new ActionListener() {
        
            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(1);
                window.setVisible(false);
            }
        });
        container.add(itemOne, JLayeredPane.PALETTE_LAYER);
        
        itemTwo = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_2.png")));
        itemTwo.setBounds(515, 430, 160, 190);
        itemTwo.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(2);
                window.setVisible(false);
            }
        });
        container.add(itemTwo, JLayeredPane.PALETTE_LAYER);
        
        itemThree = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_3.png")));
        itemThree.setBounds(800, 455, 190, 150);
        itemThree.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(3);
                window.setVisible(false);
            }
        });
        container.add(itemThree, JLayeredPane.PALETTE_LAYER);
        
        itemFour = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_4.png")));
        itemFour.setBounds(660, 180, 130, 190);
        itemFour.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(4);
                window.setVisible(false);
            }
        });
        container.add(itemFour, JLayeredPane.PALETTE_LAYER);
        
        itemFive = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_5.png")));
        itemFive.setBounds(900, 180, 105, 190);
        itemFive.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(5);
                window.setVisible(false);
            }
        });
        container.add(itemFive, JLayeredPane.PALETTE_LAYER);
        
        itemSix = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_6.png")));
        itemSix.setBounds(390, 180, 220, 150);
        itemSix.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(6);
                window.setVisible(false);
            }
        });
        container.add(itemSix, JLayeredPane.PALETTE_LAYER);
        
        itemSeven = new JButton(new ImageIcon(getClass().getResource("/resources/compra2_7.png")));
        itemSeven.setBounds(100, 180, 220, 120);
        itemSeven.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IntermediateSuper item = new IntermediateSuper(7);
                window.setVisible(false);
            }
        });
        container.add(itemSeven, JLayeredPane.PALETTE_LAYER);
        
        superImage = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo4.png")));
        superImage.setBounds(0, 0, 1280,800);
        container.add(superImage, JLayeredPane.PALETTE_LAYER);
        window.setVisible(true);
        
    }
}
